package com.jp.array;

import java.util.Arrays;

public class ArraysTest {

    public static void main(String[] args) {
        int[][] a = {{2,3},{1,5}};

        Arrays.sort(a, (o1, o2) -> {return o1[0]-o2[0];});


        for(int i=0;i<a.length;i++){
            for(int j=0;j<a[i].length;j++){
                System.out.println(a[i][j]);
            }
        }
    }
}
